using System;
using System.Collections;
using System.Text;
using Sedna.Core.Controller;
using Sedna.Core.Controller.Common;
using Sedna.DAO;

namespace Sedna.Core.Controls.Actions
{
    public class FlagValidationAction : AbstractValidationAction
    {
        private string flagPath;

        public string FlagPath
        {
            set { flagPath = value; }
        }
        protected override bool Validate(IExecutionContext executionContext, string validationValue)
        {
            bool val = (bool)scopePathParser.Parse(flagPath).Value;
            return !val;
        }
    }

}

